package com.lln.controller;

import com.lln.pojo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ErrorController {
    @ExceptionHandler(Exception.class)
    public Result error1(Exception e){
        e.printStackTrace();
        return Result.failed(e.getMessage());
    }
}
